package ventanas;
import javax.swing.JFrame;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;
import javax.swing.JTextField;
import java.awt.Insets;
import javax.swing.JButton;

public class VentanaConsultaSaldo extends JFrame{
	private JTextField textField;
	public VentanaConsultaSaldo() {
		setTitle("Consulta saldo");
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{0, 42, 106, 84, 106, 0};
		gridBagLayout.rowHeights = new int[]{0, 0, 0, 31, 0, 0, 40, 0};
		gridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		getContentPane().setLayout(gridBagLayout);
		
		JLabel lblSaldoActual = new JLabel("Saldo actual:");
		GridBagConstraints gbc_lblSaldoActual = new GridBagConstraints();
		gbc_lblSaldoActual.insets = new Insets(0, 0, 5, 5);
		gbc_lblSaldoActual.gridx = 2;
		gbc_lblSaldoActual.gridy = 3;
		getContentPane().add(lblSaldoActual, gbc_lblSaldoActual);
		
		textField = new JTextField();
		GridBagConstraints gbc_textField = new GridBagConstraints();
		gbc_textField.insets = new Insets(0, 0, 5, 5);
		gbc_textField.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField.gridx = 3;
		gbc_textField.gridy = 3;
		getContentPane().add(textField, gbc_textField);
		textField.setColumns(10);
		
		JButton btnImprimirDatos = new JButton("Imprimir datos");
		GridBagConstraints gbc_btnImprimirDatos = new GridBagConstraints();
		gbc_btnImprimirDatos.fill = GridBagConstraints.BOTH;
		gbc_btnImprimirDatos.insets = new Insets(0, 0, 0, 5);
		gbc_btnImprimirDatos.gridx = 2;
		gbc_btnImprimirDatos.gridy = 6;
		getContentPane().add(btnImprimirDatos, gbc_btnImprimirDatos);
		
		JButton btnAtrs = new JButton("Atr\u00E1s");
		GridBagConstraints gbc_btnAtrs = new GridBagConstraints();
		gbc_btnAtrs.fill = GridBagConstraints.BOTH;
		gbc_btnAtrs.gridx = 4;
		gbc_btnAtrs.gridy = 6;
		getContentPane().add(btnAtrs, gbc_btnAtrs);
	}

}

